package com.qa.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * id
 * question
 * choice
 * answer
 * status
 * creator
 * open
 * kind
 * @author 徐
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QuestionEditDTO implements Serializable {
    /**
     * 题目id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 题目内容
     */
    private String question;
    /**
     * 选项
     */
    private String choice;
    /**
     * 答案
     */
    private String answer;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 是否公开
     */
    private Integer open;
}
